package cn.xueshishasha.managers;

import java.util.Date;

import cn.xueshishasha.exceptions.RegisterErrorException;
import cn.xueshishasha.exceptions.UserNotExistException;
import cn.xueshishasha.models.User;

public interface IUserManager {
	public int login(User user) throws UserNotExistException;
	public void register(User user) throws RegisterErrorException;
	public boolean usernameIsExist(User user); 
	public void setLoginIpAndDate(int userId,String loginIp,Date loginDate);
	public User getUserInfo(int userId);
}
